package com.wyx.pojo.dto;

import com.wyx.pojo.User;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 吴宇~
 * @motto 我亦无他，唯手熟尔。
 * @edition jdk1.8
 * @reflection 0-1 喧闹任其喧闹，自由我自为之，我自风情万种，与世无争。
 * @date 2023/12/16/14:15
 * @target 心若有所向往，何惧道阻且长
 *
 *
 */
@Data
@NoArgsConstructor
public class UserDto extends User {
//    权限名称
    private String powerName;
//    总店名称
    private String headStoreName;

    public UserDto(String powerName, String headStoreName) {
        this.powerName = powerName;
        this.headStoreName = headStoreName;
    }

    public UserDto(String id, String loginId, String loginPassword, Character salt, String affiliatedHeadId, String affiliatedFollowId, Character loginDetermine, String deleteDetermine, String userName, String userPhone, String userPic, String userCardId, String userIdentity, String createId, String updateId, Date createTime, Date updateTime, String powerName, String headStoreName) {
        super(id, loginId, loginPassword, salt, affiliatedHeadId, affiliatedFollowId, loginDetermine, deleteDetermine, userName, userPhone, userPic, userCardId, userIdentity, createId, updateId, createTime, updateTime);
        this.powerName = powerName;
        this.headStoreName = headStoreName;
    }
}
